  
  function inicioHermeticWeb() {   
        var xx = 0;        
        var yy = 0;
        var winwidth, winheight;     
        if (winwidth==null) winwidth = screen.availWidth;
        if (winheight==null) winheight = screen.availHeight;                
        sOptions = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes';
        sOptions = sOptions + ',width='+winwidth+',height='+winheight+', top=' + yy + ', left=' + xx;
        window.open('inicio.do', 'windowmain', sOptions);       
        //window.open('inicio.do', 'HermeticWeb', sOptions);       
        window.opener='x';
        window.close();        
  }  

  function submitForm() {
      var frm = document.forms[0];
       
      if (validacionBrowser()){
          //alert("navegador permitido submit");        
        
          // Check if all the required fields have been entered by the user before
          // submitting the form
          if( frm.usuario.value == "" ) { 
            alert("Ingrese el Usuario");
            frm.usuario.focus();
            return false;
          }
        
          if( frm.password.value == "" ) {    
            alert("Ingrese el Password");
            frm.password.focus();
            return false;
          }  
          
            if( frm.empresa.value == "" ) {    
            alert("Ingrese la Empresa");
            frm.empresa.focus();
            return false;
          }  
          frm.submit();
      }else{
          alert("El navegador NO esta permitido");
          return false;
      }
      return true;
    }
